<?php

/**
 * @package Kpl
 * @author k2
 * @version $Id: Report.php 196 2009-02-20 12:36:01Z Alexander.Anokhin $
 */

class Report {

	public static function factory ($name, $type) {
		$class = 'Report_'.ucfirst(strtolower($type));
		
		if (class_exists($class))
			return new $class($name);
		else 
			return new Report_Null;
	}

}